<extend name="Public/base"/>
<block name="body">
	<link rel="stylesheet" href="/static/backend/css/report.css">
<div class="page-crumb">
	<div class="ui-ctrl ui-crumb"><span class="ui-crumb-node ui-crumb-node-first ui-crumb-node-last">主页</span></div>
</div>


	<div class="layui-main">
		<div class="list-action">
			<a class="ui-link skin-add-link" href="javascript:;" onclick="PopModel.openFrame('/Apply/create');" target="">新建应用</a>
		</div>
		<div class="report-view">

			<div class="report-general">
				<ul class="general-detail">
					<li class="general-detail-item general-detail-item-view">
						<p class="general-detail-item-base">
							<a class="general-detail-item-data" href="/Adsense/index" style="color:red">{$result.apply_count}</a>
						</p>
						<p class="general-detail-item-name">全部应用</p>
					</li>

					<li class="general-detail-item general-detail-item-click">
						<p class="general-detail-item-base">
							<a class="general-detail-item-data" href="/Adsense/index" style="color:red">{$result.force_count}</a>
						</p>
						<p class="general-detail-item-name">生效中的应用</p>
					</li>

					<li class="general-detail-item general-detail-item-click-ratio">
						<p class="general-detail-item-base">
							<a class="general-detail-item-data" href="/Adsense/index" style="color:red">{$result.ios_count}</a>
						</p>
						<p class="general-detail-item-name">IOS平台</p>
					</li>
					<li class="general-detail-item general-detail-item-click-ratio">
						<p class="general-detail-item-base">
							<a class="general-detail-item-data" href="/Adsense/index" style="color:red">{$result.android_count}</a>
						</p>
						<p class="general-detail-item-name">Android平台</p>
					</li>

				</ul>
			</div>
		</div>
	</div>
	<div class="layui-main">

		<div class="report-view">
			<div class="report-general">
				<ul class="general-detail">
					<li class="general-detail-item general-detail-item-view">
						<p class="general-detail-item-base">
							<span class="general-detail-item-data">{$result.yesterday_income}</span>
						</p>
						<p class="general-detail-item-name">昨日收入</p>
					</li>

					<li class="general-detail-item general-detail-item-click">
						<p class="general-detail-item-base">
							<span class="general-detail-item-data">{$result.gross_income}</span>
						</p>
						<p class="general-detail-item-name">总收入</p>
					</li>

					<li class="general-detail-item general-detail-item-click-ratio">
						<p class="general-detail-item-base">
							<span class="general-detail-item-data">{$result.cash}</span>
						</p>
						<p class="general-detail-item-name">未提现收入</p>
					</li>
					<li class="general-detail-item general-detail-item-click-ratio">
						<p class="general-detail-item-base">
							<span class="general-detail-item-data">{$result.withdrawals}</span>
						</p>
						<p class="general-detail-item-name">已提现收入</p>
					</li>

				</ul>
			</div>
		</div>
	</div>

	<div class="page-crumb">
		<div class="layui-form-item">
			<span class="layui-btn layui-btn-min" lay-submit="" lay-filter="">　　流量数据　　</span>
		</div>
		<div class="page-crumb">
			<div class="layui-form-item">
				<div class="layui-inline">
					<input class="layui-input" name="begin" placeholder="请选择开始时间" value="{$data.begin}" onclick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD'})">
				</div>至
				<div class="layui-inline">
					<input class="layui-input" name="end" placeholder="请选择结束时间"  value="{$data.begin}" onclick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD'})">
				</div>
				<button class="layui-btn layui-btn-min" lay-submit="" lay-filter="submit" id="ssss">　　确定　　</button>
			</div>


		</div>
		<!-- 数据列表 -->
		<table class="layui-table list-content-table" lay-skin="nob">
			<colgroup>
				<col width="20">
				<col width="150">
				<col width="150">
				<col width="100">
				<col width="100">
				<col width="100">
				<col width="100">
				<col width="100">
				<col width="100">
				<col width="100">
			</colgroup>
			<thead class="list-table-head">
			<tr>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text ui-table-hcell-text-first">
						<input type="checkbox" class="ui-table-select-all" data-index="">
					</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">应用名称</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">应用平台</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">接入方式</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">广告请求数量</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">广告返回数量</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">展示数</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">点击数</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">点击率</div>
				</th>
				<th class="ui-table-hcell">
					<div class="ui-table-hcell-text">时间段内收入(RMB)</div>
				</th>
			</tr>
			</thead>

			<tbody class="list-table-body">
			<foreach name="data" item="value">
				<tr>
					<td class="ui-table-cell">
						<div class="ui-table-cell-text">
							<input type="checkbox" class="ui-table-multi-select" data-id="{$value.id}">
						</div>
					</td>
					<td class="ui-table-cell">
						<div class="ui-table-cell-text">
							{$value.apply_name}
							<span class="table-content-addition">ID: {$value.id}</span>
						</div>
					</td>
					<td class="ui-table-cell">
						<div class="ui-table-cell-text">
							<if condition="$value.apply_platform eq 1">
								<span class="table-status-activated">IOS</span>
								<elseif condition="$value.apply_platform eq 2"/>
								<span class="table-status-inactive">Android</span>
							</if>
						</div>
					</td>
					<td class="ui-table-cell">
						<div class="ui-table-cell-text">
							<if condition="$value.access_mode eq 1">
								<span class="table-status-activated">SDK</span>
								<elseif condition="$value.access_mode eq 2"/>
								<span class="table-status-inactive">API</span>
							</if>
						</div>
					</td>
					<td class="ui-table-cell"><div class="ui-table-cell-text">{$value.ad_returns}</div></td>
					<td class="ui-table-cell"><div class="ui-table-cell-text">{$value.ad_requests}</div></td>
					<td class="ui-table-cell"><div class="ui-table-cell-text">{$value.union_view}</div></td>
					<td class="ui-table-cell"><div class="ui-table-cell-text">{$value.union_click}</div></td>
					<td class="ui-table-cell"><div class="ui-table-cell-text">{$value.union_click_rate}</div></td>
					<td class="ui-table-cell"><div class="ui-table-cell-text">{$value.sum}</div></td>

				</tr>
			</foreach>
			</tbody>

		</table>
	</div>
</block>